
<div class="templatemo-content-wrapper">
    <div class="templatemo-content">
        <ol class="breadcrumb">
            <li><a href="<?=site_url()?>/admin/">Dashboard</a></li>
            <li><a href="#">统计查看</a></li>
            <li class="active">Tables</li>
        </ol>
        <h1>统计数据查看</h1>
        <p>statistics table.</p>

        <!--<div class="row margin-bottom-30">
          <div class="col-md-12">
            <ul class="nav nav-pills">
              <li class="active"><a href="#">New Users <span class="badge">42</span></a></li>
              <li><a href="#">Active Users <span class="badge">107</span></a></li>
              <li><a href="#">Expired Users <span class="badge">3</span></a></li>
            </ul>
          </div>
        </div> -->
        <div class="row">
            <div class="col-md-12">
                <!--<div class="btn-group pull-right" id="templatemo_sort_btn">
                  <button type="button" class="btn btn-default">Sort by</button>
                  <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                    <span class="caret"></span>
                    <span class="sr-only">Toggle Dropdown</span>
                  </button>
                  <ul class="dropdown-menu" role="menu">
                    <li><a href="#">First Name</a></li>
                    <li><a href="#">Last Name</a></li>
                    <li><a href="#">Username</a></li>
                  </ul>
                </div>-->
                <a href="admin/progress/0/" class="btn btn-primary">
                    0-100
                </a>
                <a href="admin/progress/0/100_500" class="btn btn-primary">
                    101-500
                </a>
                <a href="admin/progress/0/501_1000" class="btn btn-primary">
                    501-1000
                </a>
                <a href="admin/progress/0/1001_1500" class="btn btn-primary">
                    1001-1500
                </a>
                <a href="admin/progress/0/1501_2000" class="btn btn-primary">
                    1501--2000
                </a>
                <a href="admin/progress/0/2001_3000" class="btn btn-primary">
                    2001-3000
                </a>
                <a href="admin/progress/0/3001_4000" class="btn btn-primary">
                    3001-4000
                </a>
                <a href="admin/progress/0/4001_5000" class="btn btn-primary">
                    4001-5000
                </a>
                <a href="admin/progress/0/5001_6000" class="btn btn-primary">
                    5001-6000
                </a>
                <a href="admin/progress/0/6001_7000" class="btn btn-primary">
                    6001-7000
                </a>
                <a href="admin/progress/0/7001_8000" class="btn btn-primary">
                    7001-8000
                </a>
                <a href="admin/progress/0/8001_9000" class="btn btn-primary">
                    8001-9000
                </a>
                <a href="admin/progress/0/9001_10000" class="btn btn-primary">
                    9001-10000
                </a>
                <a href="admin/progress/0/10001_20000" class="btn btn-primary">
                    10001-20000
                </a>
                <div class="table-responsive">
                    <h4 class="margin-bottom-15"></h4>
                    <table class="table table-striped table-hover table-bordered">
                        <thead>
                        <tr>
                            <th>#</th>
                            <th>用户头像</th>
                            <th>用户昵称</th>
                            <th>性别</th>
                            <th>真实姓名</th>
                           <!-- <th>身份证号</th>-->
                            <th>手机号</th>
                            <th>积攒数额</th>
                        </tr>
                        </thead>
                        <tbody>
                        <?php foreach ($result as $i=>$row ):?>
                            <tr <?=$i%2==1?:'green'?>>
                                <td><?=$i+1?></td>
                                <td><img src="<?=$row['headimgurl']?>" width="30" height="30"/></td>
                                <td><?=$row['nickname']?></td>
                                <td><?=$row['sex']?></td>
                                <td><?=$row['realname']?></td>
                                <!--<td><?/*=$row['identifierno']*/?></td>-->
                                <td><?=$row['mobile']?></td>
                                <td><?=$row['total_pay']?></td>
                                <!-- <td>

                                   <div class="btn-group">
                                     <button type="button" class="btn btn-info">Action</button>
                                     <button type="button" class="btn btn-info dropdown-toggle" data-toggle="dropdown">
                                       <span class="caret"></span>
                                       <span class="sr-only">Toggle Dropdown</span>
                                     </button>
                                     <ul class="dropdown-menu" role="menu">
                                       <li><a href="#">Bootstrap</a></li>
                                       <li><a href="#">Font Awesome</a></li>
                                       <li><a href="#">jQuery</a></li>
                                     </ul>
                                   </div>
                                 </td>
                                 <td><a href="#" class="btn btn-link">Delete</a></td>-->
                            </tr>

                        <?php endforeach;?>
                        </tbody>
                    </table>
                </div>

                <ul class="pagination pull-right">

                    <?=$pagenation?>

                    <!--<li><a href="#">5 <span class="sr-only">(current)</span></a></li>-->
                    <!--<li><a href="#">&raquo;</a></li>-->
                </ul>

            </div>
        </div>
    </div>
</div>

<!-- Modal -->
<div class="modal fade" id="confirmModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                <h4 class="modal-title" id="myModalLabel">Are you sure you want to sign out?</h4>
            </div>
            <div class="modal-footer">
                <a href="sign-in.html" class="btn btn-primary">Yes</a>
                <button type="button" class="btn btn-default" data-dismiss="modal">No</button>
            </div>
        </div>
    </div>
</div>

<?php include 'admin_footer.php'?>
<script>
    $(function() {
        $('.form_date').datetimepicker({
            language:  'zh-CN',
            format:'yyyy-mm-dd',
            weekStart: 1,
            todayBtn:  1,
            autoclose: 1,
            todayHighlight: 1,
            startView: 2,
            minView: 2,
            forceParse: 0
        }).on('changeDate', function(ev){
            location.href='admin/statusticsPage/0/'+$(this).val();
        });
    });
</script>
</body>
</html>


